package com.sinoatma.physignsmonitor.bean

import androidx.room.Entity
import androidx.room.PrimaryKey

data class MsgBleData(
    var type:Int=1,//1 连接状态  2 读取数据   3连接成功
    var connectStatus:String?="",
    var bleData:String?="",
    var bleName:String?=""
)



data class  SendCmd(
    var type:Int=1,
    var cmd:String=""

)



data class BleDevicePower(
    var deviceName: String ="",
    var deviceAddress: String =""
)

data class BpDataBean(
    var time:String,
    var h_pressure:String,
    var l_pressure:String,
    var bloodPressureStatus:String
)

data class  MonitorRecordsBean(
    var bloodDonationCode:String,//献血码
    var name:String,//姓名
    var sex:String,//性别
    var age:String,//年纪
    var bloodOxygen:String,//血氧
    var bloodPressure:String,//血压
    var pulse:String,//脉搏
    var temperature:String,//体温
    var monitorTime:String,//监护时间  2024/12/19 18:50:46
    var earlyWarningTime:String,//预警时间  2024/12/19 18:50:46
    var reasonsEarlyWarning:String,//预警原因  脉搏数据异常
    var dataAcquisitionDeviceNumber:String //数据采集设备编码
):java.io.Serializable

/**
 *
 */
data class ExcelColumnHead(
    var name:String,
    var columnWidth:Int
)

@Entity(tableName = "monitor_records")
data class MonitorRecordEntity(
    @PrimaryKey(autoGenerate = true) // 自动生成自增ID
    var id: Long = 0,               // 自增ID
    var bloodDonationCode: String,  // 主键字段
    var name: String,               // 姓名
    var sex: String,                // 性别
    var warningTimes: Int,          // 警告次数
    var dateStr: String,            // 日期字符串
    var fileAddress: String         // 文件地址
) {
    override fun toString(): String {
        return "MonitorRecordEntity(bloodDonationCode='$bloodDonationCode', name='$name', sex='$sex', warningTimes=$warningTimes, dateStr='$dateStr', fileAddress='$fileAddress')"
    }
}


data class BloodCollectListBean(
    var donorCode:String,
    var name:String,
    var type:String,
    var sex:String,
    var exceptionCount:String,
    var deviceNumber:String,
    var filePath:String,
    var startTime:String,
    var endTime:String
) {
    override fun toString(): String {
        return "BloodCollectListBean(donorCode='$donorCode', name='$name', type='$type', sex='$sex', exceptionCount='$exceptionCount', deviceNumber='$deviceNumber', filePath='$filePath', startTime='$startTime', endTime='$endTime')"
    }
}

//献血信息标识值（用于上传Excel表格使用）
data class InfoIdeValue(
    var id:String
)









